/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.business.account.manage.form;

import info.peigen.hotpot.business.account.facade.enums.AccountFreezeDirection;
import info.peigen.hotpot.business.account.facade.enums.AccountFreezeType;
import info.peigen.hotpot.common.core.lang.money.Money;
import info.peigen.hotpot.common.service.base.manage.ManageFormBase;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(AccountFreezeLogManageEditForm)</b>
 * 管理后台 修改"账户冻结解冻记录"表单
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023-08-29
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class AccountFreezeLogManageEditForm extends ManageFormBase {
    /** 账户Id */
    @Size(max = 30)
    String                 accountId;
    /** 交易Id */
    @NotEmpty
    @Size(max = 30)
    String                 tradeId;
    /** 冻结类型 */
    @Size(max = 30)
    AccountFreezeType      freezeType;
    /** 冻结金额 */
    @NotNull
    @Size(max = 65)
    Money                  freezeAmount;
    /** 方向;FREEZE:冻结;UNFREEZE:解冻 */
    @Size(max = 10)
    AccountFreezeDirection direction;
    /** 原因 */
    @NotEmpty
    @Size(max = 1000)
    String                 reason;
    /** 后台操作员 */
    @NotEmpty
    @Size(max = 22)
    String                 bopsOperatorId;
    /** 逻辑删除标记 */
    @NotNull
    Integer                enable;
}